class LoomLoad < ActiveRecord::Base
  belongs_to  :container
  belongs_to  :roll
  belongs_to  :load_type
  belongs_to  :loaded_by, :class_name => "User", :foreign_key => :loaded_by_id
  
  def before_create
    self.loaded_at ||= Time.now
  end
  
  validates_presence_of :container, :roll, :load_type
  
end
